package com.ruoyi.app.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.suggest.domain.CrmSuggestRecord;
import com.ruoyi.suggest.service.ICrmSuggestRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 维修记录Controller
 * 
 * @author hct
 * @date 2022-02-11
 */
@RestController
@RequestMapping("/app/suggestrecord")
public class AppSuggestRecordController extends BaseController
{
    @Autowired
    private ICrmSuggestRecordService crmSuggestRecordService;

    /**
     * 查询维修记录列表
     */
   @GetMapping("/list")
    public TableDataInfo list(CrmSuggestRecord crmSuggestRecord)
    {
        startPage();
        List<CrmSuggestRecord> list = crmSuggestRecordService.selectCrmSuggestRecordList(crmSuggestRecord);
        return getDataTable(list);
    }


}
